// 4 供应商管理 2
export default {
  path: '/supplymanage',
  name: 'supplymanage',
  icon: 'solution',
  authority: ['business:antd:supplier'],
  routes: [
    {
      path: '/supplymanage/protection',
      name: 'protection',
      authority: ['business::supp:maintain'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/supplymanage/protection',
          redirect: '/supplymanage/protection/index',
        },
        {
          path: '/supplymanage/protection/index',
          component: './SupplyManage/SupplierMaintenance/Index',
        },
        {
          path: '/supplymanage/protection/add',
          name: 'add',
          component: './SupplyManage/SupplierMaintenance/Add',
        },
        {
          path: '/supplymanage/protection/detail',
          name: 'detail',
          component: './SupplyManage/SupplierMaintenance/Detail',
        },
        {
          path: '/supplymanage/protection/update',
          name: 'update',
          component: './SupplyManage/SupplierMaintenance/Update',
        },
        {
          path: '/supplymanage/protection/batch',
          name: 'batch',
          component: './SupplyManage/SupplierMaintenance/Batch',
        },
      ],
    },
    {
      path: '/supplymanage/busiscope',
      name: 'busiscope',
      authority: ['business::supp:busiscope'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/supplymanage/busiscope',
          redirect: '/supplymanage/busiscope/index',
        },
        {
          path: '/supplymanage/busiscope/index',
          component: 'SupplyManage/BusinessScope/Index',
        },
        {
          path: '/supplymanage/busiscope/add',
          name: 'add',
          component: 'SupplyManage/BusinessScope/Add',
        },
        {
          path: '/supplymanage/busiscope/update',
          name: 'update',
          component: 'SupplyManage/BusinessScope/Add',
        },
        {
          path: '/supplymanage/busiscope/detail',
          name: 'detail',
          component: 'SupplyManage/BusinessScope/Detail',
        },
        {
          path: '/supplymanage/busiscope/batch',
          name: 'batch',
          component: 'SupplyManage/BusinessScope/Batch',
        },
      ],
    },
    {
      path: '/supplymanage/look',
      name: 'look',
      authority: ['ns:supp:busiscope'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/supplymanage/look',
          redirect: '/supplymanage/look/index',
        },
        {
          path: '/supplymanage/look/index',
          component: './SupplyManage/BusinessScope/Index',
        },
        {
          path: '/supplymanage/look/detail',
          name: 'detail',
          component: 'SupplyManage/BusinessScope/Detail',
        },
      ],
    },
    {
      path: '/supplymanage/account',
      name: 'account',
      authority: ['mgr:supp:account'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/supplymanage/account',
          redirect: '/supplymanage/account/index',
        },
        {
          path: '/supplymanage/account/index',
          component: './SupplyManage/SupplierAccountManage/Index',
        },
        {
          path: '/supplymanage/account/detail',
          name: 'detail',
          component: './SupplyManage/SupplierAccountManage/Detail',
        },
      ],
    },
    {
      path: '/supplymanage/protocol',
      name: 'protocol',
      hideChildrenInMenu: true,
      authority: ['ns:supply:protocol'],
      routes: [
        {
          path: '/supplymanage/protocol',
          redirect: '/supplymanage/protocol/index',
        },
        {
          path: '/supplymanage/protocol/index',
          component: './SupplyManage/Protocol/Index',
        },
        {
          path: '/supplymanage/protocol/detail',
          name: 'detail',
          component: './SupplyManage/Protocol/Detail',
        },
        {
          path: '/supplymanage/protocol/history',
          name: 'history',
          component: './SupplyManage/Protocol/History',
        },
        {
          path: '/supplymanage/protocol/batchadd',
          name: 'batchadd',
          component: './SupplyManage/Protocol/BatchAdd',
        },
      ],
    },
  ],
};
